package org.example.computerdesign.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Size;
/**
 * @author 朱文权
 * */
@Data
public class PatientD {
    /**
     * 身份证号
     * */
    @NotBlank
    @Size(min=1,max = 20)
    private String identity;
    /**
     * 姓名
     * */
    @NotBlank
    @Size(min = 1,max = 30)
    private String name;
    /**
     * 0为女，1为男
     * */
    @NotBlank
    @Range(min = 0,max = 1)
    private Short sex;
}
